home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_nub_hint.cog < prev    next >
Text File  |  1999-11-15  |  4KB  |  182 lines

  1. # Jones 3D Cog Script
  2. #
  3. # nub_hint.cog
  4. #
  5. # Hint Script
  6. #
  7. # [TL] et al...
  8. #
  9. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  10. #
  11. # ========================================================================================
  12. symbols
  13.  
  14. message        startup
  15. message        activated
  16. message        touched
  17. message        entered
  18. message        crossed
  19. message        pulse
  20.  
  21. thing        object1
  22. thing        object2
  23. thing        object3
  24. thing        object4
  25. thing        object5
  26. thing        object6
  27. thing        object7
  28. thing        object8
  29. thing        object9
  30. thing        object10
  31. thing        object11
  32. thing        player            local
  33.  
  34. int            done1=0            local
  35. int            done2=0            local
  36. int            done3=0            local
  37. int            done4=0            local
  38. int            done5=0            local
  39. int            done6=0            local
  40. int            done7=0            local
  41. int            done8=0            local
  42. int            done9=0            local
  43. int            done10=0        local
  44. int            done11=0        local
  45.  
  46. surface        face1
  47. sector        portal2
  48. surface        face3
  49. sector        portal4
  50. thing        lever5
  51. sector        portal6
  52. thing        button7
  53. sector        portal8
  54. thing        ledge9
  55. surface        face10
  56. thing        horus11
  57.  
  58. end
  59.  
  60. # ========================================================================================
  61. code
  62.  
  63. startup:
  64.  
  65. player = GetLocalPlayerThing();
  66.  
  67. return;
  68.  
  69. #........................................................................................
  70. entered:
  71.  
  72. if ((GetSenderRef() == portal2) && (done1 == 1))
  73.     {
  74.     if (done2 == 1)    return;
  75.     SetHintSolved(object2);
  76.     //print("hint 2 solved");
  77.     done2 = 1;
  78.     }
  79. if ((GetSenderRef() == portal4) && (done3 == 1))
  80.     {
  81.     if (done4 == 1)    return;
  82.     SetHintSolved(object4);
  83.     //print("hint 4 solved");
  84.     done4 = 1;
  85.     }
  86. if ((GetSenderRef() == portal6) && (done5 == 1))
  87.     {
  88.     if (done6 == 1)    return;
  89.     SetHintSolved(object6);
  90.     //print("hint 6 solved");
  91.     done6 = 1;
  92.     }
  93. if ((GetSenderRef() == portal8) && (done7 == 1))
  94.     {
  95.     if (done8 == 1)    return;
  96.     SetHintSolved(object8);
  97.     //print("hint 8 solved");
  98.     done8 = 1;
  99.     }
  100. if ((GetSenderRef() == ledge9) && (done8 == 1))
  101.     {
  102.     if (done9 == 1)    return;
  103.     Setpulse(0.5);
  104.     done9 = 1;
  105.     }
  106. if (GetSenderRef() == face1)
  107.     {
  108.     if (done1 == 1)    return;
  109.     SetHintSolved(object1);
  110.     //print("hint 1 solved");
  111.     done1 = 1;
  112.     }
  113. if ((GetSenderRef() == face3) && (done2 == 1))
  114.     {
  115.     if (done3 == 1)    return;
  116.     SetHintSolved(object3);
  117.     //print("hint 3 solved");
  118.     done3 = 1;
  119.     }
  120. if ((GetSenderRef() == face10) && (done1 == 1))
  121.     {
  122.     if (done10 == 1) return;
  123.     SetHintSolved(object10);
  124.     //print("hint 10 solved");
  125.     done10 = 1;
  126.     }
  127.  
  128. return;
  129.  
  130. # ........................................................................................
  131. crossed:
  132.  
  133. return;
  134.  
  135. # ........................................................................................
  136. touched:
  137.  
  138. return;
  139.  
  140. # ........................................................................................
  141. activated:
  142.  
  143. if ((GetSenderRef() == lever5) && (done4 == 1))
  144.     {
  145.     if (done5 == 1)    return;
  146.     SetHintSolved(object5);
  147.     //print("hint 5 solved");
  148.     done5 = 1;
  149.     }
  150. if ((GetSenderRef() == button7) && (done6 == 1))
  151.     {
  152.     if (done7 == 1)    return;
  153.     SetHintSolved(object7);
  154.     //print("hint 7 solved");
  155.     done7 = 1;
  156.     }
  157. if ((GetSenderRef() == horus11) && (done10 == 1))
  158.     {
  159.     if (done11 == 1) return;
  160.     SetHintSolved(object11);
  161.     //print("hint 11 solved");
  162.     done11 = 1;
  163.     }
  164.  
  165. return;
  166.  
  167. # ........................................................................................
  168. pulse:
  169.  
  170. if (GetInv(player, 52))
  171.     {
  172.     SetHintSolved(object9);
  173.     //print("hint 9 solved");
  174.     SetPulse(0);
  175.     }
  176.  
  177. return;
  178.  
  179. # ........................................................................................
  180. end
  181.  
  182.